<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>PxMetaData.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="PhysXLogoBlack.png"/></td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('PxMetaData_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">PxMetaData.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="PxMetaData_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">// Redistribution and use in source and binary forms, with or without</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment">// modification, are permitted provided that the following conditions</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">// are met:</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">//  * Redistributions of source code must retain the above copyright</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">//    notice, this list of conditions and the following disclaimer.</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">//  * Redistributions in binary form must reproduce the above copyright</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">//    notice, this list of conditions and the following disclaimer in the</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">//    documentation and/or other materials provided with the distribution.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">//  * Neither the name of NVIDIA CORPORATION nor the names of its</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">//    contributors may be used to endorse or promote products derived</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">//    from this software without specific prior written permission.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS &#39;&#39;AS IS&#39;&#39; AND ANY</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment">// PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment">// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment">// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment">// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment">// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment">// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment">// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment">//</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment">// Copyright (c) 2008-2021 NVIDIA Corporation. All rights reserved.</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment">// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.  </span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#ifndef PX_PHYSICS_METADATA_H</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#define PX_PHYSICS_METADATA_H</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="Px_8h.html">foundation/Px.h</a>&quot;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxIO_8h.html">foundation/PxIO.h</a>&quot;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="PxMetaDataFlags_8h.html">PxMetaDataFlags.h</a>&quot;</span></div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="preprocessor">#if !PX_DOXYGEN</span></div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacephysx.html">physx</a></div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;{</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno"><a class="line" href="structPxMetaDataEntry.html">   52</a></span>&#160;    <span class="keyword">struct </span><a class="code" href="structPxMetaDataEntry.html">PxMetaDataEntry</a></div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    {</div><div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="structPxMetaDataEntry.html#af798a0e7beeb8caf4ddbd713fc0994c6">   54</a></span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span>*     <a class="code" href="structPxMetaDataEntry.html#af798a0e7beeb8caf4ddbd713fc0994c6">type</a>;           </div><div class="line"><a name="l00055"></a><span class="lineno"><a class="line" href="structPxMetaDataEntry.html#a5fb361c8856029844ac694f01d31f5d3">   55</a></span>&#160;        <span class="keyword">const</span> <span class="keywordtype">char</span>*     <a class="code" href="structPxMetaDataEntry.html#a5fb361c8856029844ac694f01d31f5d3">name</a>;           </div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="structPxMetaDataEntry.html#a31fb4a1629e34ceceaa0daa52521fea6">   56</a></span>&#160;        <a class="code" href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a>           <a class="code" href="structPxMetaDataEntry.html#a31fb4a1629e34ceceaa0daa52521fea6">offset</a>;         </div><div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="structPxMetaDataEntry.html#a7350e286124fcd8a4edb2a2a61b81535">   57</a></span>&#160;        <a class="code" href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a>           <a class="code" href="structPxMetaDataEntry.html#a7350e286124fcd8a4edb2a2a61b81535">size</a>;           </div><div class="line"><a name="l00058"></a><span class="lineno"><a class="line" href="structPxMetaDataEntry.html#a1efc5f7a629ef2f730fec6ec9d99a28f">   58</a></span>&#160;        <a class="code" href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a>           <a class="code" href="structPxMetaDataEntry.html#a1efc5f7a629ef2f730fec6ec9d99a28f">count</a>;          </div><div class="line"><a name="l00059"></a><span class="lineno"><a class="line" href="structPxMetaDataEntry.html#a62398e1e02dcbfca7126ee6a8e4e9f71">   59</a></span>&#160;        <a class="code" href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a>           <a class="code" href="structPxMetaDataEntry.html#a62398e1e02dcbfca7126ee6a8e4e9f71">offsetSize</a>;     </div><div class="line"><a name="l00060"></a><span class="lineno"><a class="line" href="structPxMetaDataEntry.html#ad6271b105706045a82e8e771f9a4dcaa">   60</a></span>&#160;        <a class="code" href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a>           <a class="code" href="structPxMetaDataEntry.html#ad6271b105706045a82e8e771f9a4dcaa">flags</a>;          </div><div class="line"><a name="l00061"></a><span class="lineno"><a class="line" href="structPxMetaDataEntry.html#a638dd4ae7cf2bff56370ea132e5f4455">   61</a></span>&#160;        <a class="code" href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a>           <a class="code" href="structPxMetaDataEntry.html#a638dd4ae7cf2bff56370ea132e5f4455">alignment</a>;      </div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    };</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="group__physics.html#gaffbcca4cdc677e1e2fe5cf379146727e">   64</a></span>&#160;<span class="preprocessor">    #define PX_STORE_METADATA(stream, metaData) stream.write(&amp;metaData, sizeof(PxMetaDataEntry))</span></div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="group__physics.html#ga59c318a035d7a555f3e2188d757059bf">   66</a></span>&#160;<span class="preprocessor">    #define PX_SIZE_OF(Class, Member)   sizeof((reinterpret_cast&lt;Class*&gt;(0))-&gt;Member)</span></div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00071"></a><span class="lineno"><a class="line" href="group__physics.html#ga14481630a9253df1784a9cad4e94d904">   71</a></span>&#160;<span class="preprocessor">    #define PX_DEF_BIN_METADATA_ITEM(stream, Class, type, name, flags) \</span></div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">    { \</span></div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="preprocessor">        PxMetaDataEntry tmp = { #type, #name, PxU32(PX_OFFSET_OF_RT(Class, name)), PX_SIZE_OF(Class, name), \</span></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="preprocessor">                                1, 0, flags, 0}; \</span></div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="preprocessor">        PX_STORE_METADATA(stream, tmp); \</span></div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="preprocessor">    }</span></div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno"><a class="line" href="group__physics.html#gad42d1fc82f3ab8db230e5050f2fe0cd0">   82</a></span>&#160;<span class="preprocessor">    #define PX_DEF_BIN_METADATA_ITEMS(stream, Class, type, name, flags, count) \</span></div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="preprocessor">    { \</span></div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="preprocessor">        PxMetaDataEntry tmp = { #type, #name, PxU32(PX_OFFSET_OF_RT(Class, name)), PX_SIZE_OF(Class, name), \</span></div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="preprocessor">                            count, 0, flags, 0}; \</span></div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="preprocessor">        PX_STORE_METADATA(stream, tmp); \</span></div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="preprocessor">    }</span></div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="group__physics.html#ga5c5117095910154a5e39fee736503e72">   94</a></span>&#160;<span class="preprocessor">    #define PX_DEF_BIN_METADATA_ITEMS_AUTO(stream, Class, type, name, flags) \</span></div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">    { \</span></div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;<span class="preprocessor">        PxMetaDataEntry tmp = { #type, #name, PxU32(PX_OFFSET_OF_RT(Class, name)), PX_SIZE_OF(Class, name), \</span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="preprocessor">                            sizeof((reinterpret_cast&lt;Class*&gt;(0))-&gt;name)/sizeof(type), 0, flags, 0}; \</span></div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="preprocessor">                            PX_STORE_METADATA(stream, tmp); \</span></div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="preprocessor">    }</span></div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno"><a class="line" href="group__physics.html#ga7d5660bc1b17b72651434edf7fa022a8">  104</a></span>&#160;<span class="preprocessor">    #define PX_DEF_BIN_METADATA_CLASS(stream, Class) \</span></div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor">    { \</span></div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="preprocessor">        PxMetaDataEntry tmp = { #Class, 0, 0, sizeof(Class), 0, 0, PxMetaDataFlag::eCLASS, 0 }; \</span></div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="preprocessor">        PX_STORE_METADATA(stream, tmp); \</span></div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="preprocessor">    }</span></div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="group__physics.html#ga314967fa3f63ec7c0b84832edb318458">  113</a></span>&#160;<span class="preprocessor">    #define PX_DEF_BIN_METADATA_VCLASS(stream, Class) \</span></div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;<span class="preprocessor">    { \</span></div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;<span class="preprocessor">        PxMetaDataEntry tmp = { #Class, 0, 0, sizeof(Class), 0, 0, PxMetaDataFlag::eCLASS|PxMetaDataFlag::eVIRTUAL, 0}; \</span></div><div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="preprocessor">        PX_STORE_METADATA(stream, tmp); \</span></div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="preprocessor">    }</span></div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;</div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="group__physics.html#ga190471540583d37595e5532c7534f950">  122</a></span>&#160;<span class="preprocessor">    #define PX_DEF_BIN_METADATA_TYPEDEF(stream, newType, oldType) \</span></div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="preprocessor">    { \</span></div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="preprocessor">        PxMetaDataEntry tmp = { #newType, #oldType, 0, 0, 0, 0, PxMetaDataFlag::eTYPEDEF, 0 }; \</span></div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="preprocessor">        PX_STORE_METADATA(stream, tmp); \</span></div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="preprocessor">    }</span></div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="group__physics.html#ga032d753d48dd9e14306d309c2b618410">  131</a></span>&#160;<span class="preprocessor">    #define PX_DEF_BIN_METADATA_BASE_CLASS(stream, Class, BaseClass) \</span></div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;<span class="preprocessor">    { \</span></div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="preprocessor">        Class* myClass = reinterpret_cast&lt;Class*&gt;(42);                                                          \</span></div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;<span class="preprocessor">        BaseClass* s = static_cast&lt;BaseClass*&gt;(myClass);                                                        \</span></div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="preprocessor">        const PxU32 offset = PxU32(size_t(s) - size_t(myClass));                                                \</span></div><div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160;<span class="preprocessor">        PxMetaDataEntry tmp = { #Class, #BaseClass, offset, sizeof(Class), 0, 0, PxMetaDataFlag::eCLASS, 0 };   \</span></div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;<span class="preprocessor">        PX_STORE_METADATA(stream, tmp);                                                                         \</span></div><div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;<span class="preprocessor">    }</span></div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="group__physics.html#gadf1f469d767ae64422c20cce7c71a6b3">  143</a></span>&#160;<span class="preprocessor">    #define PX_DEF_BIN_METADATA_UNION(stream, Class, name) \</span></div><div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;<span class="preprocessor">    { \</span></div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;<span class="preprocessor">        PxMetaDataEntry tmp = { #Class, 0, PxU32(PX_OFFSET_OF_RT(Class, name)), PX_SIZE_OF(Class, name), \</span></div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;<span class="preprocessor">                            1, 0, PxMetaDataFlag::eUNION, 0 }; \</span></div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;<span class="preprocessor">        PX_STORE_METADATA(stream, tmp); \</span></div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="preprocessor">    }</span></div><div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="group__physics.html#ga0f17b2c81d2d85ff9ff7f853464c38e7">  153</a></span>&#160;<span class="preprocessor">    #define PX_DEF_BIN_METADATA_UNION_TYPE(stream, Class, type, enumValue)  \</span></div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;<span class="preprocessor">    { \</span></div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;<span class="preprocessor">        PxMetaDataEntry tmp = { #Class, #type, enumValue, 0, 0, 0, PxMetaDataFlag::eUNION, 0 }; \</span></div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;<span class="preprocessor">        PX_STORE_METADATA(stream, tmp); \</span></div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="preprocessor">    }</span></div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;</div><div class="line"><a name="l00162"></a><span class="lineno"><a class="line" href="group__physics.html#ga2cc87661da498e4f0c4ce26b6656e467">  162</a></span>&#160;<span class="preprocessor">    #define PX_DEF_BIN_METADATA_EXTRA_ITEM(stream, Class, type, control, align) \</span></div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="preprocessor">    { \</span></div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<span class="preprocessor">        PxMetaDataEntry tmp = { #type, 0, PxU32(PX_OFFSET_OF_RT(Class, control)), sizeof(type), 0, PxU32(PX_SIZE_OF(Class, control)), \</span></div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;<span class="preprocessor">                            PxMetaDataFlag::eEXTRA_DATA|PxMetaDataFlag::eEXTRA_ITEM, align }; \</span></div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;<span class="preprocessor">        PX_STORE_METADATA(stream, tmp); \</span></div><div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;<span class="preprocessor">    }</span></div><div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;</div><div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="group__physics.html#ga39043f3971c7c14f163a41f41982701f">  172</a></span>&#160;<span class="preprocessor">    #define PX_DEF_BIN_METADATA_EXTRA_ITEMS(stream, Class, type, control, count, flags, align)  \</span></div><div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;<span class="preprocessor">    { \</span></div><div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160;<span class="preprocessor">        PxMetaDataEntry tmp = { #type, 0, PxU32(PX_OFFSET_OF_RT(Class, control)), PxU32(PX_SIZE_OF(Class, control)), \</span></div><div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;<span class="preprocessor">                            PxU32(PX_OFFSET_OF_RT(Class, count)), PxU32(PX_SIZE_OF(Class, count)), \</span></div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;<span class="preprocessor">                            PxMetaDataFlag::eEXTRA_DATA|PxMetaDataFlag::eEXTRA_ITEMS|flags, align }; \</span></div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;<span class="preprocessor">        PX_STORE_METADATA(stream, tmp); \</span></div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;<span class="preprocessor">    }</span></div><div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160;    </div><div class="line"><a name="l00185"></a><span class="lineno"><a class="line" href="group__physics.html#ga5605c240ca14c7fbfabf545edb73bcdc">  185</a></span>&#160;<span class="preprocessor">    #define PX_DEF_BIN_METADATA_EXTRA_ITEMS_MASKED_CONTROL(stream, Class, type, control, controlMask ,count, flags, align) \</span></div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;<span class="preprocessor">    { \</span></div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;<span class="preprocessor">        PxMetaDataEntry tmp = { #type, 0, PxU32(PX_OFFSET_OF_RT(Class, control)), PxU32(PX_SIZE_OF(Class, control)), \</span></div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;<span class="preprocessor">                            PxU32(PX_OFFSET_OF_RT(Class, count)), PxU32(PX_SIZE_OF(Class, count)), \</span></div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;<span class="preprocessor">                            PxMetaDataFlag::eCONTROL_MASK|PxMetaDataFlag::eEXTRA_DATA|PxMetaDataFlag::eEXTRA_ITEMS|flags|(controlMask &amp; PxMetaDataFlag::eCONTROL_MASK_RANGE) &lt;&lt; 16, \</span></div><div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;<span class="preprocessor">                            align}; \</span></div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;<span class="preprocessor">        PX_STORE_METADATA(stream, tmp); \</span></div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;<span class="preprocessor">    }</span></div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;</div><div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="group__physics.html#gae42707bb37470210b586a341ff585b78">  198</a></span>&#160;<span class="preprocessor">    #define PX_DEF_BIN_METADATA_EXTRA_ARRAY(stream, Class, type, dyn_count, align, flags) \</span></div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;<span class="preprocessor">    { \</span></div><div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;<span class="preprocessor">        PxMetaDataEntry tmp = { #type, 0, PxU32(PX_OFFSET_OF_RT(Class, dyn_count)), PX_SIZE_OF(Class, dyn_count), align, 0, \</span></div><div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;<span class="preprocessor">                            PxMetaDataFlag::eEXTRA_DATA|flags, align }; \</span></div><div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;<span class="preprocessor">        PX_STORE_METADATA(stream, tmp); \</span></div><div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;<span class="preprocessor">    }</span></div><div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;</div><div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="group__physics.html#ga03a3549588909e6ca0a491af76146757">  208</a></span>&#160;<span class="preprocessor">    #define PX_DEF_BIN_METADATA_EXTRA_NAME(stream, Class, control, align) \</span></div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;<span class="preprocessor">    { \</span></div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;<span class="preprocessor">        PxMetaDataEntry tmp = { &quot;char&quot;, &quot;string&quot;, 0, 0, 0, 0, PxMetaDataFlag::eEXTRA_DATA|PxMetaDataFlag::eEXTRA_NAME, align }; \</span></div><div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;<span class="preprocessor">        PX_STORE_METADATA(stream, tmp); \</span></div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;<span class="preprocessor">    }</span></div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;    </div><div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="group__physics.html#ga8a5eb66875b992351ed7038b8001bbea">  217</a></span>&#160;<span class="preprocessor">    #define PX_DEF_BIN_METADATA_EXTRA_ALIGN(stream, Class, align)   \</span></div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;<span class="preprocessor">    { \</span></div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;<span class="preprocessor">        PxMetaDataEntry tmp = { &quot;PxU8&quot;, &quot;Alignment&quot;, 0, 0, 0, 0, PxMetaDataFlag::eEXTRA_DATA|PxMetaDataFlag::eALIGNMENT, align}; \</span></div><div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;<span class="preprocessor">        PX_STORE_METADATA(stream, tmp); \</span></div><div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;<span class="preprocessor">    }</span></div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;<span class="preprocessor">#if !PX_DOXYGEN</span></div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;} <span class="comment">// namespace physx</span></div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="namespacephysx_html"><div class="ttname"><a href="namespacephysx.html">physx</a></div><div class="ttdef"><b>Definition:</b> GuContactBuffer.h:37</div></div>
<div class="ttc" id="Px_8h_html"><div class="ttname"><a href="Px_8h.html">Px.h</a></div></div>
<div class="ttc" id="PxIO_8h_html"><div class="ttname"><a href="PxIO_8h.html">PxIO.h</a></div></div>
<div class="ttc" id="structPxMetaDataEntry_html_a1efc5f7a629ef2f730fec6ec9d99a28f"><div class="ttname"><a href="structPxMetaDataEntry.html#a1efc5f7a629ef2f730fec6ec9d99a28f">PxMetaDataEntry::count</a></div><div class="ttdeci">PxU32 count</div><div class="ttdoc">Number of items of type Type (0 for dynamic sizes) </div><div class="ttdef"><b>Definition:</b> PxMetaData.h:58</div></div>
<div class="ttc" id="structPxMetaDataEntry_html_a638dd4ae7cf2bff56370ea132e5f4455"><div class="ttname"><a href="structPxMetaDataEntry.html#a638dd4ae7cf2bff56370ea132e5f4455">PxMetaDataEntry::alignment</a></div><div class="ttdeci">PxU32 alignment</div><div class="ttdoc">Explicit alignment. </div><div class="ttdef"><b>Definition:</b> PxMetaData.h:61</div></div>
<div class="ttc" id="structPxMetaDataEntry_html_a31fb4a1629e34ceceaa0daa52521fea6"><div class="ttname"><a href="structPxMetaDataEntry.html#a31fb4a1629e34ceceaa0daa52521fea6">PxMetaDataEntry::offset</a></div><div class="ttdeci">PxU32 offset</div><div class="ttdoc">Offset from the start of the class (ie from &quot;this&quot;, field is located at &quot;this&quot;+Offset) ...</div><div class="ttdef"><b>Definition:</b> PxMetaData.h:56</div></div>
<div class="ttc" id="structPxMetaDataEntry_html_af798a0e7beeb8caf4ddbd713fc0994c6"><div class="ttname"><a href="structPxMetaDataEntry.html#af798a0e7beeb8caf4ddbd713fc0994c6">PxMetaDataEntry::type</a></div><div class="ttdeci">const char * type</div><div class="ttdoc">Field type (bool, byte, quaternion, etc) </div><div class="ttdef"><b>Definition:</b> PxMetaData.h:54</div></div>
<div class="ttc" id="PxMetaDataFlags_8h_html"><div class="ttname"><a href="PxMetaDataFlags_8h.html">PxMetaDataFlags.h</a></div></div>
<div class="ttc" id="structPxMetaDataEntry_html_ad6271b105706045a82e8e771f9a4dcaa"><div class="ttname"><a href="structPxMetaDataEntry.html#ad6271b105706045a82e8e771f9a4dcaa">PxMetaDataEntry::flags</a></div><div class="ttdeci">PxU32 flags</div><div class="ttdoc">Field parameters. </div><div class="ttdef"><b>Definition:</b> PxMetaData.h:60</div></div>
<div class="ttc" id="structPxMetaDataEntry_html_a5fb361c8856029844ac694f01d31f5d3"><div class="ttname"><a href="structPxMetaDataEntry.html#a5fb361c8856029844ac694f01d31f5d3">PxMetaDataEntry::name</a></div><div class="ttdeci">const char * name</div><div class="ttdoc">Field name (appears exactly as in the source file) </div><div class="ttdef"><b>Definition:</b> PxMetaData.h:55</div></div>
<div class="ttc" id="group__foundation_html_gacce5749db3dcfb916e98c253374264ed"><div class="ttname"><a href="group__foundation.html#gacce5749db3dcfb916e98c253374264ed">PxU32</a></div><div class="ttdeci">uint32_t PxU32</div><div class="ttdef"><b>Definition:</b> Px.h:48</div></div>
<div class="ttc" id="structPxMetaDataEntry_html"><div class="ttname"><a href="structPxMetaDataEntry.html">PxMetaDataEntry</a></div><div class="ttdoc">Struct to store meta data definitions. </div><div class="ttdef"><b>Definition:</b> PxMetaData.h:52</div></div>
<div class="ttc" id="structPxMetaDataEntry_html_a62398e1e02dcbfca7126ee6a8e4e9f71"><div class="ttname"><a href="structPxMetaDataEntry.html#a62398e1e02dcbfca7126ee6a8e4e9f71">PxMetaDataEntry::offsetSize</a></div><div class="ttdeci">PxU32 offsetSize</div><div class="ttdoc">Offset of dynamic size param, for dynamic arrays. </div><div class="ttdef"><b>Definition:</b> PxMetaData.h:59</div></div>
<div class="ttc" id="structPxMetaDataEntry_html_a7350e286124fcd8a4edb2a2a61b81535"><div class="ttname"><a href="structPxMetaDataEntry.html#a7350e286124fcd8a4edb2a2a61b81535">PxMetaDataEntry::size</a></div><div class="ttdeci">PxU32 size</div><div class="ttdoc">sizeof(Type) </div><div class="ttdef"><b>Definition:</b> PxMetaData.h:57</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_713b4d6d20ce249967929ad234a3da6e.html">include</a></li><li class="navelem"><a class="el" href="dir_614c92edf36df8b9e1f64405ff8ea5e2.html">common</a></li><li class="navelem"><a class="el" href="PxMetaData_8h.html">PxMetaData.h</a></li>
    <li class="footer">Copyright &copy; 2008-2021 NVIDIA Corporation, 2788 San Tomas Expressway, Santa Clara, CA 95051 U.S.A. All rights reserved. <a href="http://www.nvidia.com ">www.nvidia.com</a></li>
  </ul>
</div>
</body>
</html>
